//
//  XS_Reactive.swift
//  EKLWisdom2021
//
//  Created by 韩云智 on 2021/5/2.
//

import UIKit
import RxSwift
import RxCocoa

public extension Reactive where Base: UIButton {
    var touchDown: ControlEvent<Void> {
        return controlEvent(.touchDown)
    }
    var touchUp: Observable<(Void)> {
        return Observable.of(controlEvent(.touchUpInside), controlEvent(.touchUpOutside)).merge()
    }
}
